<button type="button" onclick="submitAnswer()">Continue</button>

<script>
  var submitAnswer = function() {
  	if (parent.location.pathname.indexOf('/learn') === 0) {
      window.parent.postMessage(
          JSON.stringify({'submit': ''}),
          window.location.protocol + '//' + window.location.host
      );
    }
  };
</script>
